![]() |
PATH![]() |
![]() ![]() |
Obtains the file type and creator for a file name.
OSStatus URLGetFileInfo (
StringPtr name,
OSType* type,
OSType* creator);
The URLGetFileInfo function obtains a file's type and creator codes. The type and creator returned in type and creator are determined by the Internet configuration mapping table and are based on the filename extension. For example, if you pass the file name jane.txt , URLGetFileInfo will return `TEXT' in the type parameter and `ttxt' in the creator parameter.